<template>
  <div id="app">
    <!--该标签 等价于之前的a标签   to属性等价于a标签中href属性-->
    <router-link to="/home">首页</router-link> |

    <router-link to="/user">用户</router-link>
    <!--路由视图渲染标签-->
    <router-view/>
  </div>
</template>
<script>
  import HelloWorld from './components/HelloWorld.vue'

  export default {
    name: 'app',
    components: {
      HelloWorld
    }
  }
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
